$(document).ready(function() {
    $('#load-continue').click(function() {
        var startpoint = parseInt($('#hdn-start-point').html());
        jQuery.ajax({
            'url': '/confession/confession/recall',
            'data': {'startpoint': startpoint},
            'type': 'POST',
            timeout: 120000,
            //'dataType': 'json',
            beforeSend: function() {
                $("#main-content").html('waiting...');
            },
            error: function(xhr, tStatus, e) {
                console.log(" We have an error ");
                console.log(tStatus + "   " + e.message);
                console.log("else: " + e.message);
            },
            'success': function(response) {
                $("#main-content").html(response);
            },
            'cache': false
        });

    });
});
